#pragma once

#include "../umlmodel_global.h"

#include "ActivityEdge.h"

namespace uml {

/// <summary>
/// ControlFlow
/// A ControlFlow is an ActivityEdge traversed by control tokens or object tokens of
/// control type, which are use to control the execution of ExecutableNodes.
/// </summary>
class UMLMODEL_EXPORT ControlFlow : public ActivityEdge {

public: // Constructors and destructors
    explicit ControlFlow(const QString& umlType="uml::ControlFlow");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

};

} // namespace uml
